package cn.jl.demo.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cn.jl.demo.Vo.LoginVo;
import cn.jl.demo.Vo.UserVo;

/**
 * @author LongJunLin
 * @version 创建时间：2021年1月2日 下午6:07:50
 * @Description 类描述
 */

@RestController
public class TestVueDemoController {

	@RequestMapping(value = "/find", method = RequestMethod.GET)
	public String find() {
		String String = "testSuccees";
		return String;

	}

	@RequestMapping(value = "/login", method = RequestMethod.POST)
	public LoginVo login(@RequestBody UserVo vo) {

		LoginVo loginVo = new LoginVo();
		loginVo.setToken("12121dsds54545");
		return loginVo;

	}
}
